//
//  FactBottomMenu.m
//  WorldOfFacts_V2
//
//  Created by Demjanko Denis on 09.12.12.
//  Copyright (c) 2012 it-dimension. All rights reserved.
//

#import "FactBottomMenu.h"

@implementation FactBottomMenu

@synthesize likeButton;
@synthesize commentButton;
@synthesize shareButton;
@synthesize commentsCountlabel;
@synthesize likeCountLabel;
@synthesize spinner;

- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
    }
    return self;
}

-(void)loading:(BOOL)isLoading{
    if(isLoading){
        [spinner startAnimating];
        
        likeButton.alpha = 0.0f;
        commentButton.alpha = 0.0f;
        commentsCountlabel.alpha = 0.0f;
        likeCountLabel.alpha = 0.0f;
    }
    else{
        [spinner stopAnimating];
        
        likeButton.alpha = 1.0f;
        commentButton.alpha = 1.0f;
        commentsCountlabel.alpha = 1.0f;
        likeCountLabel.alpha = 1.0f;
    }
}

@end
